package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.sql.Timestamp;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 证书信息
 * 数据库通用操作实体类（普通增删改查）
 */
@TableName("zhengshuxinxi")
public class ZhengshuxinxiEntity<T> implements Serializable {
    private static final long serialVersionUID = 1L;


    public ZhengshuxinxiEntity() {

    }

    public ZhengshuxinxiEntity(T t) {
        try {
            BeanUtils.copyProperties(this, t);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
 /** 主键 */
    private Long id;

 /** 创建时间 */
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
    private Timestamp addtime;

 /** 证书名称 */
    private String zhengshumingcheng;

 /** 奖励词 */
    private String jianglici;


    private String type;

 /** 证书文件 */
    private String zhengshuwenjian;

 /** 用户账号 */
    private String yonghuzhanghao;

 /** 用户id */
    private Long userid;


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setId(Long id)
    {
        this.id = id;
    }
    public Long getId()
    {
        return id;
    }
    public void setAddtime(Timestamp addtime)
    {
        this.addtime = addtime;
    }
    public Timestamp getAddtime()
    {
        return addtime;
    }
    public void setZhengshumingcheng(String zhengshumingcheng)
    {
        this.zhengshumingcheng = zhengshumingcheng;
    }
    public String getZhengshumingcheng()
    {
        return zhengshumingcheng;
    }
    public void setJianglici(String jianglici)
    {
        this.jianglici = jianglici;
    }
    public String getJianglici()
    {
        return jianglici;
    }
    public void setZhengshuwenjian(String zhengshuwenjian)
    {
        this.zhengshuwenjian = zhengshuwenjian;
    }
    public String getZhengshuwenjian()
    {
        return zhengshuwenjian;
    }
    public void setYonghuzhanghao(String yonghuzhanghao)
    {
        this.yonghuzhanghao = yonghuzhanghao;
    }
    public String getYonghuzhanghao()
    {
        return yonghuzhanghao;
    }
    public void setUserid(Long userid)
    {
        this.userid = userid;
    }
    public Long getUserid()
    {
        return userid;
    }

}
